﻿{% extends "base.html" %}
{% block head %}
<style type="text/css">
	h2{ text-align:center;color:red}
</style>
<script type="text/javascript">
	$(function(){
		if(document.getElementById("applyTable").rows.length == 1){
			$("#applyDiv").append("<h2>暂无数据</h2>");
		}
	})
</script>
{% endblock %}
{% block content %}
<div id="applyDiv">
<table class="table table-striped" id="applyTable">
	<tr>
		<td>申请人</td>
		<td>所属部门</td>
		<td>申请时间</td>
		<td>审批时间</td>
		<td>详情</td>
		<td>审批结果</td>
	</tr>
	{% for item in dones %}
	<tr>
		<td>{{item.ApplyForm.User.UserName}}</td>
		<td>{{item.ApplyForm.User.Departments.DepartmentName}}</td>
		<td>{{item.ApplyForm.ApplyTime}}</td>
		<td>{{item.ApproveTime}}</td>
		<td><a href="">详情</a></td>
		<td></td>
	</tr>
	{% endfor %}
</table>
</div>
{% endblock %}